﻿namespace VOL.RabbitMq.RabbitMqDto.Payload
{
    /// <summary>
    /// 设备订阅负载
    /// </summary>
    [Serializable]
    public class SubscribePayload : BasePayload
    {
        /// <summary>
        /// 设备数据
        /// </summary>
        public Decimal Value { get; set; }
        /// <summary>
        /// 实时时间
        /// </summary>
        public DateTime RTC { get; set; } = DateTime.Now;
        /// <summary>
        /// 实时时间字符串
        /// </summary>
        public String RTCString => RTC.ToString("yyyy-MM-dd HH:mm:ss.fff");
    }
}
